-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add split-chain option to rank overlay plots #334
base: master
Are you sure you want to change the base?
Conversation
Wondering if it'd be cleaner to have an explicit |
Thank you for this! I'm super busy the rest of this week unfortunately, so I may not have time to comment for a little while. But I'll come back to this when I can. I really appreciate the contribution!
Probably a good idea. |
Actually, it just occurred to me that there's already
Although the default color schemes will struggle with 8 chains. |
So maybe we should add an example of doing this using |
I think splitting chains internally (via |
Oh nice :D good to know. Agree with adding it as a default False option to keep the interface stable. |
I agree with an argument that defaults to I think given the way the bayesplot internals are written (they were written mostly before posterior was developed), in order to use Lines 64 to 65 in 20910f5
Something like this: pars <- rename_transformed_pars(pars, transformations)
if (split_chains) {
x <- posterior::split_chains(posterior::as_draws_array(x))
}
set_mcmc_dimnames(x, pars) So a |
I'll try to come up with a new version when I find the time this week :) |
Small thing I noticed, |
Do we really need this? Based on the thread on BlueSky, it seems there was a misunderstanding of one of my replies (clearly I'm not being able to write clearly enough about a complex topic in 300 chars). At the moment I don't see need for this, and adding it might just cause confusion. @sims1253 if you still think this is needed, please add justification to this PR or related issue, and we can discuss further, before you spend more time on this PR. |
Hmm |
There are many things that are commonly used in practice, even they should not be used that commonly (like traceplots). Given the available information at the moment, I think the split-chains in rank plots are useless and likely to be confusing and should not be advertised to avoid people wasting their time. I'm willing to change my mind given new evidence, but without it, I would close this PR. |
Figured I'd just start with this. Anyone feel free to use this as part of a larger PR doing this for all the relevant functions. Hope I got the testing right and didn't miss anything.